Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@statoscope/stats-extension-package-info

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statoscope/stats-extension-package-info

Statoscope extension for collecting package info (e.g. available versions)

  • 5.28.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54K
increased by38.86%
Maintainers
1
Weekly downloads
 
Created

What is @statoscope/stats-extension-package-info?

@statoscope/stats-extension-package-info is an npm package designed to extend Statoscope's capabilities by providing detailed information about packages in your project. It helps in analyzing and visualizing package-related data within your webpack stats.

What are @statoscope/stats-extension-package-info's main functionalities?

Package Information Extraction

This feature allows you to extract detailed information about the packages used in your project from the webpack stats. The code sample demonstrates how to use the `getPackageInfo` function to retrieve and log package information.

const { getPackageInfo } = require('@statoscope/stats-extension-package-info');
const stats = require('./path-to-stats.json');
const packageInfo = getPackageInfo(stats);
console.log(packageInfo);

Custom Report Generation

This feature enables you to generate custom reports based on the package information extracted from the webpack stats. The code sample shows how to generate an HTML report using the `generateReport` function.

const { generateReport } = require('@statoscope/stats-extension-package-info');
const stats = require('./path-to-stats.json');
const report = generateReport(stats, { output: 'html' });
console.log(report);

Integration with Statoscope

This feature allows seamless integration with Statoscope, enhancing its functionality by adding package information. The code sample demonstrates how to initialize and apply the Statoscope extension with the package info.

const Statoscope = require('@statoscope/stats-extension-package-info');
const stats = require('./path-to-stats.json');
const statoscope = new Statoscope(stats);
statoscope.apply();

Other packages similar to @statoscope/stats-extension-package-info

FAQs

Package last updated on 20 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc